//
//  WinView.m
//  iOSPractice
//
//  Created by hoolai on 2018/11/28.
//  Copyright © 2018年 hoolai. All rights reserved.
//

#import "WinView.h"

@interface WinView()


@end

@implementation WinView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (IBAction)next:(id)sender {
    if([self.delegate respondsToSelector:@selector(goToNextLevel)]){
        [self.delegate goToNextLevel];
        [self setHidden:YES];
    }
}
- (IBAction)back:(id)sender {
    if([self.delegate respondsToSelector:@selector(goBackToMenu)]){
        [self.delegate goBackToMenu];
        [self setHidden:YES];
    }
}

@end
